package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 通用页面跳转@PathVariable
 * 
 */
@Controller
public class PageController {

	
	@RequestMapping(value="/")
	public String showIndex() {
		
		return "index";
		
	}
	//@PathVariable:占位符
	@RequestMapping(value="/{page}")
	public String showPage(@PathVariable("page") String page) {
		
		return page;
	}
}
